package com.share.netdisk.file.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("user_home_file")
public class UserFile {
    @TableId(value = "home_file_id", type = IdType.AUTO)
    private Long homeFileId;
    @TableField(value = "user_id")
    private Long userId;
    @TableField(value = "home_file_name")
    private String homeFileName;
    @TableField(value = "home_file_type")
    private String homeFileUrl;
    @TableField(value = "reclaim_url")
    private String reclaimUrl;
    @TableField(value = "reclaim_file_name")
    private String reclaimName;
    @TableField(value = "share_url")
    private String shareUrl;
    @TableField(value = "share_name")
    private String shareName;
    @TableField(value = "file_status")
    private Integer fileStatus;


    public UserFile() {
    }

    public UserFile(Long userId, String homeFileName, String homeFileUrl, String reclaimUrl, String reclaimName, String shareUrl, String shareName) {
        this.userId = userId;
        this.homeFileName = homeFileName;
        this.homeFileUrl = homeFileUrl;
        this.reclaimUrl = reclaimUrl;
        this.reclaimName = reclaimName;
        this.shareUrl = shareUrl;
        this.shareName = shareName;
    }
}
